<?php
    if(!$this->session->userdata('logged_in')) {
        redirect('logout');
    }
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href='http://fonts.googleapis.com/css?family=Federo|Kaushan+Script|Open+Sans+Condensed|Arimo' rel='stylesheet' type='text/css'>
        <?php echo link_tag('resources/css/main.css', 'stylesheet', 'text/css'); ?>
        <?php echo link_tag('resources/css/dashboard.css', 'stylesheet', 'text/css'); ?>
        <?php echo link_tag('resources/css/post.css', 'stylesheet', 'text/css'); ?>
        <?php echo link_tag('resources/css/group.css', 'stylesheet', 'text/css'); ?>
        <?php echo link_tag('resources/css/user.css', 'stylesheet', 'text/css'); ?>
        <?php echo link_tag('resources/css/index.css', 'stylesheet', 'text/css'); ?>
        <?php echo script_tag('resources/js/jquery.min.js'); ?>
        <?php echo script_tag('resources/js/dashboard.js'); ?>
        <?php echo script_tag('resources/js/script.js'); ?>
        <?php echo script_tag('resources/js/tiny_mce/tiny_mce_src.js'); ?>
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> 
        <?php echo script_tag('resources/js/jquery.dataTables.min.js'); ?>
        <?php echo script_tag('resources/js/TableTools.min.js'); ?>
        <?php echo script_tag('resources/js/ZeroClipboard.js'); ?>
        <?php echo link_tag('resources/css/style.css', 'stylesheet', 'text/css'); ?>
        <?php echo link_tag('resources/css/TableTools.css', 'stylesheet', 'text/css'); ?>
        <?php echo link_tag('resources/css/TableTools_JUI.css', 'stylesheet', 'text/css'); ?>
        <?php echo link_tag('resources/css/jquery.dataTables_themeroller.css', 'stylesheet', 'text/css'); ?>
        <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/pepper-grinder/jquery-ui.css" type="text/css" media="screen"/>	
        <title><?php echo $title; ?></title>
    </head>
    <body id="<?php echo $body_id; ?>">
        <header id="header">
            <div id="banner_wrapper" style="">
                <div id="banner">
                  <?php include 'navigation_v.php'; ?>
                </div>
                <div class="balancer"></div>
            </div>
        </header>
        <div id="wrapper">
